import 'package:enterprise_v6_app/app/core/core.dart';
import 'package:enterprise_v6_app/app/core/utils/interface.dart';
import 'package:enterprise_v6_app/app/core/utils/log_util.dart';
import 'package:enterprise_v6_app/app/data/entities/application/ticket_plan_entity.dart';
import 'package:enterprise_v6_app/app/modules/application/special_operation/special_list/management_operation_page/management_operation_controller.dart';

class LivePlayerController extends GetxController {

  ManagementOperationController controller = Get.find();

  TicketPlanReceiptLists ticketPlanReceiptLists = Get.arguments as TicketPlanReceiptLists;

  // 作业中断
  void interruptHomework() {
    controller.jobBreak();
  }

  // 中止作业
  void stopHomework() {
    controller.jobStop();
  }

  // 作业验收
  void acceptHomework() {
    controller.jobAccept();
  }

  @override
  void onInit() {
    AppLogger.log('${Interface.pullUrl}${controller.ticketPlanReceiptLists.id}.live.flv');
    super.onInit();
  }

}
